package cn.iocoder.yudao.module.obj.enums.obj;

import cn.iocoder.yudao.framework.common.core.IntArrayValuable;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

import java.util.Arrays;

/**
 * Obj的项目状态
 *
 * @author haiyun
 */
@RequiredArgsConstructor
@Getter
public enum ObjXmztEnum implements IntArrayValuable {
    XMZT_ZZX(0, "在执行"),
    XMZT_JS(10, "结束"),
    XMZT_FQ(20, "废弃"),
    XMZT_ZZ(30, "终止");


    private final Integer status;
    private final String name;

    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ObjXmztEnum::getStatus).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }

}
